import React from 'react';

import AntdRoot from '@/components/AntdRoot';
import Nav from './Nav';

import style from './BasicLayout.less';

interface BasicLayoutProps {
  children: any;
}

const BasicLayout = ({ children }: BasicLayoutProps) => {
  return (
    <AntdRoot>
      <div className={style.main}>
        <Nav />
        <div className={style.content} id="main-layout">
          {children}
        </div>
      </div>
    </AntdRoot>
  );
};

export default BasicLayout;
